import { request } from "@umijs/max";
import { stringify } from "qs";

//分页列表
export const getAccommodationPage = (params: any) =>
  request(`/accommodation/page?${stringify(params)}`, {
    method: "GET",
  });
//新增
export const addAccommodation = (params: any) =>
  request(`/accommodation/save`, {
    method: "POST",
    data: params,
  });
//更新客户入住状态
export const editAccommodationStatus = (params: any) =>
  request(`/accommodation/editStatus`, {
    method: "POST",
    data: params,
  });
